根号b^2-1/4ac写成程序语句表达式是?
来源:百度知道 编辑:UC知道 时间:2024/06/03 15:17:59
这是高中数学"算法,框图"里的内容,我不太懂这个,想问你们下,根号b^2-1/4ac写成程序语句表达式是?
sqrt(b*b - 1/(4*a*c))
------------------
or
void main(void)
{
float a,b,c;
float x,y,z;
float precision = 0.000001;
printf(c\nPlease input the the value of a.\n");
scanf("%f", &a);
printf("\n");
printf("\nPlease input the the value of b.\n");
scanf("%f", &b);
printf("\n");
printf("\nPlease input the the value of c.\n");
scanf("%f", &c);
printf("\n");
x = b*b;
y = 4*a*c;
if( (y < precision) && (y > -precision ) )
{
printf("\n4ac is too closed to zero, can not get the result of b*b - 1/(4ac)\n");
return;
}
z = x - 1/y;
if( z < precision )
{
printf("\nb*b - 1/(4ac) is less than zero, can not get the result
已知三角形ABC,角B=45度,AC=根号10/2,AB=1,求面积
已知a-b=4+根号5,b-c=4-根号5,求a^2+b^2+c^2-ab-bc-ac的值.
一元二次方程ax平方+bx+c的解x=-(b+或-根号b平方-4ac)/2a这个推理怎么来的,要过程
在锐角三角形ABC中,角A,B,C的对边为a,b,c,且tanB=根号3(ac/a^2+c^2-b^2)
在三角形ABC中,角B为45度,AB为4根号2,BC为7,求AC长
设a>0,b>0,且根号a(根号a+根号b)=3根号b(根号a+5根号b) 求a-b+根号ab/2a+3b+根号ab
/a-b+1/与根号a+2b+4互为相反数,则(a-b)的立方根是?
如果a+b-2倍的根号a-1-4倍的根号b-2=3倍的根号c-3-(c/2)-5 求a+b+c的值
证明a+b大于等于(根号2乘以根号a根号b)-1
(根号2+根号5-根号3)/(2*根号30-6*根号2+4*根号3)